﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Runtime.Serialization;
using Newtonsoft.Json;

namespace ShelSystemViewer
{
    internal enum Relationship
    {
        Other,      // 0 
        Doctor,     // 1
        Mother,     // 2
        Father,     // 3
        Brother,    // 4
        Sister,     // 5
        Spouse,     // 6
        Relative    // 7
    }

    [JsonObject(MemberSerialization.OptIn)]
    internal class Contact
    {
        [JsonProperty("firstname")]
        internal String FirstName;

        [JsonProperty("lastname")]
        internal String LastName;

        [JsonProperty("altphone")]
        internal String AltPhoneNumber;

        [JsonProperty("phone")]
        internal String PhoneNumber;

        [JsonProperty("relation")]
        internal Relationship Relation;

        [JsonProperty("address")]
        internal String Address;

        [JsonProperty("id")]
        internal int Id;

        [JsonProperty("player")]
        internal int AssociatedPlayerId;
    }
}
